package com.grape.dp.observer.jdk;

import java.util.Observable;

/**
 * 描述:MessageObServable 主题具体实现
 * @author: myx
 * @date: 2019/7/29 0029
 * Copyright © 2019-grape. All rights reserved.
 */
public class MessageObServable extends Observable {
    @Override
    public void notifyObservers(Object arg) {
        // 1.修改状态为可以群发
        setChanged();
        // 2.调用父类的notifyObservers 群发消息
        super.notifyObservers(arg);
    }
}
